IF(CHECK_MEMORY)
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CHECK_MEMORY_FLAGS}")
ENDIF(CHECK_MEMORY)

IF(BUILD_TULIP_SHARED AND MSVC)
	ADD_DEFINITIONS("-DTULIP_DLL")
ENDIF()

SET(TULIP_PLUGINS_DIR "${TULIP_OUTPUT_DIR}")

#是否只编译OGDF布局算法插件?
SET(BUILD_LAYOUT_PLUGIN_ONLY OFF CACHE BOOL "only build ogdf layout plugins? [ON|OFF]")

IF(BUILD_LAYOUT_PLUGIN_ONLY)
	ADD_SUBDIRECTORY(layout/ogdf)
ELSE(BUILD_LAYOUT_PLUGIN_ONLY)
	ADD_SUBDIRECTORY(clustering)
	ADD_SUBDIRECTORY(export)
	ADD_SUBDIRECTORY(general)
	ADD_SUBDIRECTORY(import)
	ADD_SUBDIRECTORY(layout)
	ADD_SUBDIRECTORY(metric)
	ADD_SUBDIRECTORY(selection)
	ADD_SUBDIRECTORY(sizes)
	ADD_SUBDIRECTORY(test)
	ADD_SUBDIRECTORY(string)
ENDIF(BUILD_LAYOUT_PLUGIN_ONLY)

IF(NOT BUILD_CORE_ONLY)
	ADD_SUBDIRECTORY(colors)
	ADD_SUBDIRECTORY(glyph)
	ADD_SUBDIRECTORY(interactor)
	ADD_SUBDIRECTORY(perspective)
	ADD_SUBDIRECTORY(view)
ENDIF(NOT BUILD_CORE_ONLY)
